fromConfiguration

fun fromConfiguration(context: Context, foldingFeature: ERROR CLASS: Symbol not found for androidx.window.layout.FoldingFeature?? = null): UiModeType

EN Returns the UiModeType corresponding to the Configuration.uiMode value, taking into account physical foldable features using Jetpack WindowManager.

PT Retorna o UiModeType correspondente ao valor de Configuration.uiMode, levando em conta características físicas de dispositivos dobráveis usando Jetpack WindowManager.

Parameters

context

Application context.

foldingFeature

Optional FoldingFeature obtained from WindowInfoTracker to dynamically adapt.